package com.fztx.service;

import com.spring.*;

@Component("userService")
@Scope("singleton")
public class UserService implements InitializingBean, BeanNameAware,UserInterface {

    @Autowired
    private OrderService orderService;

    private String beanName;

    @FztxValue("fztxhhh")
    private String test;

    public void test(){
        System.out.println(test);
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("InitializingBean初始化");
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName=beanName;
    }
}
